Changed parameter user to String username