working on user validity