Add checking if user is logged in, checking password and updating user