Close #3. To check if a user is already logged we will use the method user_is_logged_in and the user_is_anonymous instead of drupal_session_started