refactor render login - (close #10)