RoR - Added user login functionality