Popup can be activated on hovering the link.
Lightbox has an option to automatically focus on the first input. It's strongly recommended to use inline popup type for lightboxes with form instead of ajax (to keep entered data if the user accidentally refreshed the page).
inline
ajax
Magnific Popup Plugin