added validateUser