printing error messages to screen
wired login process to use DB