Changed users.erl to fit with frontend