Implemented username functionality and added to views