Function Mods

Added membership hook and changes to check_login_status() function