using md5 when registering and loging in