converted login file to haml and refactored