Implementing auth

@azharkhan 
Please review