User is logged in action

Reference $a to see if user is logged in (based on session and DB)