Front End Login and Logout Function changes