Some refactoring and a pseudo-implementation of findByUsername
Added notifications