Updated the login, register and logout. All 3 functions work. Couple minor bugs still exist