encrypt password to md5 before submit to login