Fix login attempt database insertion on wrong password

	modified:   User.php
Fix handling password recover request

	modified:   .htaccess
	modified:   api/users/put.php