Rework the error handling flow
Show notification popup in case logging in fails. Also improve positioning of components.
Update TODO