cleans up some signin stuff to use a method, fixes a bug in user controller