Add method to check user logged in or not