fixed bug with wrong error message
refactored accounts controller