Added validation to the AuthenticationService

Signed-off-by: Dalton Pelc <daltonjpelc@gmail.com>