making login work rudimentarily