adapted joinus_loggedin to bs3