Applies Controllers and fixes login