Fixed security vulnerability and possible bug
Fixed bug in user retrieving