improve reset/forgot password onclick function