refactored login code
added settings on website feature