added register,is userexisting and is PasswordSame function