Made users an activerecord model