Is there a query to see if all of my logins and password are moved during migration from SQL Server 2005 to 2008R2
Use something like SSDT to do a schema comparison on the before and after. Check this out: https://msdn.microsoft.com/en-us/library/hh272690(v=vs.103).aspx

Note: This is only for the logins, obviously showing passwords isn't supported