Created directive to validate the user, finished layout