password hash, php version check, style changes