Bug Fix: Undefined length of $('#input_password').val().

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>
Bug Fix: Undefined mail constants.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>