I am trying to use fragment for my login form which is optionally open on click of a button. This is to avoid duplicate codes in all pages. But I am getting the below error