login and database

note: login file was just renamed to avoid confusion.