Code cleaning
and use HTTP_DATE instead of duplicating code.
Fixed request new password