Added validation to user details page.