use params['email'], not params[:email]