code refactoring
added login form (not functional)