generally works but fb login on submit has a bug