added login after successful registration