Added validation before returnin current user from local storage