Implemented valid user check