Front End Login, Logout Function Updated