Added Login Functionality w/ Error Checking