login controller
Better login controller