Reformatted login success and failure pages
Makes server wait for database to be created before continuing