added users logic
added users logic