login/ search room function