changed session[:user] to session[:user_id] in the registrations controller to fix the register/login bug