Added functionality for basic authenticate on username.