Authentication and Login/logout functionality done.