Convert login controller to coffee