Added the ability to log in and log out(issues to fix)