Install & Configure Postgresql

I have installed Postgresql 12 version and created user and database as required. Also done change in /var/lib/pgsql/12/data/pg_hba.conf file where i changed the peer to md5 in local section. But when tried to connect to database getting error.

Can someone please help why i am getting this error ?