Corrected Nil error in user.last_seen in application controller