For edit it should find a user by id rather than going on to the new_user_session_path. The edit method should contain the following piece of code.
def edit
if User.exists?
@user = User.find(params[:id])
else
redirect_to new_user_registration_path
end
end