middle-layout for login and register views