52 implement authentication

Partial functionality of token-based authentication and client-side validations.