Added initial functionality for authentication