User sign in added and bugfixed