Calling function to check valid user