complete login functionality
refactor code
prune directory