Fixing bugs and testing of signing in, fully working now