added validation to user registration and new job.