imported auth for loggedin view