Added @Configuration to AuthenticationSecurity + username fix