Removed unnecessary instance variables in code
Added method for showing user detail
Modified search_by_username route, to avoid conflicts