add login ctrl and view