Added cancel logic and username.tolower