Generate new URL for popup form

In your example they just use a link which points to the anchor “#login2”.
Try using a <a href="#login">Login</a> link instead of a button.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)