added login status prototype