updated some php warnings and added early first user test