fixed bug, changed session[:user] to session[:user_id] in registration controller