Fix some bug and activate basic auth