Fixed bug for accessing user data if not logged in