Login Boxes

Added code to prevent the login form boxes from going beyond the edge
the side menu.