Modify, move signin endpoint to seperate file. Add script tag for signin.