Login w/ Database

Should be finish now. Added some error messages