Function validate moved to user