put is_logged_in function into their respective constructor functions