Is it possible for visitor to login without leaving the page they are on?

Hi!

Is it possible for visitor to login without leaving the page they came to?
I would like for visitors to be able to log in without leaving the post they are viewing or redirect them back to this post after they logged in.

Right now, site takes logged in users to the wp-admin, which is the worst thing ever and I just probably did something wrong. Can you please help me to change at least this part?

Thank you so much!
Renata