Remove redundant libraries
Refactor authentication structure