Fixed errors in user controller, transaction model