added err messages at login