following a tutorial for logging in users in rails 4