nil.empty? works too, it wont work if params[:user] is nil