Login functionality added. Admin window added.