Refactor login.jade