added functions to user.class //NOTHING TESTED