custom login page, remove <p> tag around images

added function for custom login page, added function to remove p tag around images