Refactor login logic
Show appropriate login actions based on status