added errors for users and some other small changes