Added signout functionality
Fixed bugs