Login and register with secure md5 password encryption using PHP