Made login notifications asynchronous (so they appear nearer the end of the login message block, and to improve performance)
Fixed compile errors
Fixed compile errors