refactored simple auth component file
removed trash files
updated for IDE trash files
refactored for more flexible