Fixed bugs

Fixed bug that caused user.signout() to not function properly.