added some security features to user