Added a login prompt. Fixed formatting errors in a few queries.