Few fixes: user agent in request, throw error if the logged users want to login again.