Move login logic to controller and update README