Commenting all functions
Added isLoggedIn()