inlined the login and search