added login page

note: contains some unconverted code from auto database