Refactored authentication
Updated dependencies