login user
after sucessful login does the following:
if path is "/login" -> the user is routed to "/"
if path is something elselike post page -> then user is kept on the same page for ease
login user
after sucessful login does the following:
if path is "/login" -> the user is routed to "/"
if path is something elselike post page -> then user is kept on the same page for ease