improved validation
added registration method + fixed mock
created directive to validate date
added directive to check if user exists