Adds functionailty to login and signup forms